
package framework.customer;

import java.util.Map;

public class PersonalCustomer extends ACustomer implements IPerson {

    protected String birthDate;

    public PersonalCustomer(Map<String, String> data) {
        super(data.get("name"), data.get("street"), data.get("city"), data.get("zip"), data.get("email"), data.get("state"));
        this.birthDate = data.get("dob");
    }

    public PersonalCustomer(String name, String street, String city,
                            String zip, String email, String state, String birthDate) {
        super(name, street, city, zip, email, state);
        this.birthDate = birthDate;
    }

    public Type getType() {
        return Type.PERSONAL;
    }

}
